from django.urls import path, re_path
from rest_framework.routers import DefaultRouter

from orders import views

router = DefaultRouter()  # 有根路由
router.register(r'order_info', views.OrderInfoModelViewSet)

urlpatterns = [
    path('orders/settlement/', views.OrderGoodsViewSet.as_view()),
    path('orders/', views.OrderCommitView.as_view())
]

urlpatterns += router.urls
